Namespace: Microsoft.ConfigurationManagement.ApplicationManagement
Assembly: Microsoft.ConfigurationManagement.ApplicationManagement (in Microsoft.ConfigurationManagement.ApplicationManagement.dll)

Usage

Visual Basic
Dim collection As IEnumerable(Of T)
Dim action As Action(Of T)

EnumerableHelpers.ForEach(collection, action)

Syntax

Visual Basic
<DebuggerStepThroughAttribute> _
<ExtensionAttribute> _
Public Shared Sub ForEach(Of T) ( _
		collection As IEnumerable(Of T), _
		action As Action(Of T) _
)
C#
[DebuggerStepThroughAttribute] 
[ExtensionAttribute] 
public static void ForEach<T> (
		IEnumerable<T> collection,
		Action<T> action
)
C++
[DebuggerStepThroughAttribute] 
[ExtensionAttribute] 
public:
generic<typename T>
static void ForEach (
		IEnumerable<T>^ collection, 
		Action<T>^ action
)
J#

JScript

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Server 2003, and

Target Platforms

See Also